Skip to content

Improve com crop#350

Merged
cjh1 merged 10 commits into
OpenChemistry:masterfrom
ercius:improve_com_crop
May 27, 2026
Merged

Improve com crop#350
cjh1 merged 10 commits into
OpenChemistry:masterfrom
ercius:improve_com_crop

Conversation

@ercius
Copy link
Copy Markdown
Collaborator

@ercius ercius commented Dec 9, 2025

I previously used a square mask to reject electrons outside the central beam. This is not ideal. I thought that making a radial mask would be slow, but it turns out to be slightly faster per frame. I estimate about 4 seconds saved for a medium sized 1kx1k sparse dataset and a more accurate measurement. Win-win!

This needs to be tested before merging. Ill update when it looks good to merge.

@ercius
Copy link
Copy Markdown
Collaborator Author

ercius commented Apr 28, 2026

@cjh1 This looks good to go on my side. I tested it on some other data sets. I am not sure how to run the tests though.

If this is good then we can merge and cut a new release.

Copy link
Copy Markdown
Member

@cjh1 cjh1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@cjh1
Copy link
Copy Markdown
Member

cjh1 commented May 26, 2026

@ercius Once this is merged I will cut a release.

@cjh1 cjh1 merged commit b2ead4b into OpenChemistry:master May 27, 2026
12 checks passed
@cjh1
Copy link
Copy Markdown
Member

cjh1 commented May 27, 2026

I have cut a release that contains these changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants